OPC-UA Embedded Server SDK  2.1.0
Address Space Functions

Functions

UA_Status_t UAServer_Delete_all_nodes (void)
 
UA_Status_t UAServer_Delete_node (uint32_t node_handle)
 
void UAServer_Init_config_structure_Folder (UA_Folder_t *configuration)
 
UA_Status_t UAServer_Create_Folder (const UA_Folder_t *configuration)
 
void UAServer_Init_config_structure_View (UA_View_t *configuration)
 
UA_Status_t UAServer_Create_View (const UA_View_t *configuration)
 
void UAServer_Init_config_structure_Method (UA_Method_t *configuration)
 
UA_Status_t UAServer_Create_Method (const UA_Method_t *configuration)
 
void UAServer_Init_config_structure_BaseDataVariable (UA_BaseDataVariable_t *configuration)
 
UA_Status_t UAServer_Create_BaseDataVariable (const UA_BaseDataVariable_t *configuration)
 
void UAServer_Init_config_structure_DataItem (UA_DataItem_t *configuration)
 
UA_Status_t UAServer_Create_DataItem (const UA_DataItem_t *configuration)
 
void UAServer_Init_config_structure_AnalogItem (UA_AnalogItem_t *configuration)
 
UA_Status_t UAServer_Create_AnalogItem (const UA_AnalogItem_t *configuration)
 
void UAServer_Init_config_structure_TwoStateDiscrete (UA_TwoStateDiscrete_t *configuration)
 
UA_Status_t UAServer_Create_TwoStateDiscrete (const UA_TwoStateDiscrete_t *configuration)
 
void UAServer_Init_config_structure_MultiStateDiscrete (UA_MultiStateDiscrete_t *configuration)
 
UA_Status_t UAServer_Create_MultiStateDiscrete (const UA_MultiStateDiscrete_t *configuration)
 
void UAServer_Init_config_structure_File (UA_File_t *configuration)
 
UA_Status_t UAServer_Create_File (const UA_File_t *configuration)
 
UA_Status_t UAServer_Add_to_folder (uint32_t folder_handle, uint32_t node_handle)
 
UA_Status_t UAServer_Add_to_folder_with_view_mask (uint32_t folder_handle, uint32_t node_handle, uint16_t view_mask)
 
UA_Status_t UAServer_Add_to_objects_folder (uint32_t node_handle)
 

Detailed Description

Function Documentation

UA_Status_t UAServer_Delete_all_nodes ( void  )

Delete all host generated nodes in the address space

Allows the host system to remove all nodes from the address space that it has previously added.

Returns
The result of the operation.
UA_Status_t UAServer_Delete_node ( uint32_t  node_handle)

Delete a specific host generated node from the address space

Allows the host system to remove a specific node from the address space that it has previously added.

Parameters
[in]node_handleThe handle of the node to be deleted
Returns
The result of the operation.
void UAServer_Init_config_structure_Folder ( UA_Folder_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_Folder ( const UA_Folder_t *  configuration)

Create a folder node that will contain (or reference) other nodes

Allows the host system to create a folder node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_View ( UA_View_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_View ( const UA_View_t *  configuration)

Create a view node that will contain (or reference) other nodes

Allows the host system to create a view node in the address space. The library supports 15 different views. Each view created will be given a view index of 1 - 15 in the order in which they are created. The view index is used in conjunction with view masks that can be specified for references. See the SDK user manual (Other Features and Further Information section) for more information about views. A created view is automatically added to the Views folder of the address space.

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_Method ( UA_Method_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_Method ( const UA_Method_t *  configuration)

Create a method node

Allows the host system to create a method node in the address space. While method nodes can be created they are not functionally supported by the library at present.

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_BaseDataVariable ( UA_BaseDataVariable_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_BaseDataVariable ( const UA_BaseDataVariable_t *  configuration)

Create a BaseDataVariable node

Allows the host system to create a BaseDataVariable node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_DataItem ( UA_DataItem_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_DataItem ( const UA_DataItem_t *  configuration)

Create a DataItem node

Allows the host system to create a DataItem node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_AnalogItem ( UA_AnalogItem_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_AnalogItem ( const UA_AnalogItem_t *  configuration)

Create an AnalogItem node

Allows the host system to create an AnalogItem node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_TwoStateDiscrete ( UA_TwoStateDiscrete_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_TwoStateDiscrete ( const UA_TwoStateDiscrete_t *  configuration)

Create a TwoStateDiscrete node

Allows the host system to create a TwoStateDiscrete node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_MultiStateDiscrete ( UA_MultiStateDiscrete_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_MultiStateDiscrete ( const UA_MultiStateDiscrete_t *  configuration)

Create a MultiStateDiscrete node

Allows the host system to create a MultiStateDiscrete node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
void UAServer_Init_config_structure_File ( UA_File_t *  configuration)

Initialise a configuration structure for a new node with default values

In order to add create a node in the address space, the host system must configure a configuration structure for the node and then call the appropriate 'Create' function. This function initializes a node configuration structure to default values prior to configuring the structure and calling the 'Create' function.

Parameters
[in]configurationA pointer to the configuration data structure for the node
UA_Status_t UAServer_Create_File ( const UA_File_t *  configuration)

Create a File node

Allows the host system to create a File node in the address space

Parameters
[in]configurationA pointer to the configuration data structure for the node
Returns
The result of the operation.
UA_Status_t UAServer_Add_to_folder ( uint32_t  folder_handle,
uint32_t  node_handle 
)

Add a node to a folder node

Allows the host system to add a previously created node to a folder. Specifically this creates a reference from the folder node to the target node.

Parameters
[in]folder_handleThe handle of the folder node (source node of the reference)
[in]node_handleThe handle of the node to add to the folder (target node of the reference)
Returns
The result of the operation.
UA_Status_t UAServer_Add_to_folder_with_view_mask ( uint32_t  folder_handle,
uint32_t  node_handle,
uint16_t  view_mask 
)

Add a node to a folder node while specifying a view mask

Allows the host system to add a previously created node to a folder. Specifically this creates a reference from the folder node to the target node. This function allows the host to specify a view mask. This filters the visibility of the reference depending on the view being browsed by the client.

Parameters
[in]folder_handleThe handle of the folder node (source node of the reference)
[in]node_handleThe handle of the node to add to the folder (target node of the reference)
[in]view_maskA bit mask with a bit set for each view where the reference is visible. Bit zero is no view and bits 1 - 15 are the 15 supported views.
Returns
The result of the operation.
UA_Status_t UAServer_Add_to_objects_folder ( uint32_t  node_handle)

Add a node to the objects folder

Allows the host system to add a previously created node to the objects folder. Specifically this creates a reference from the objects folder node to the target node. The objects folder is a standard object that is always present in the address space.

Parameters
[in]node_handleThe handle of the node to add to the objects folder (target node of the reference)
Returns
The result of the operation.